home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / BIOLOGY / GEP208A.ZIP / GNUPLOT.TX_ / GNUPLOT.TX
Text File  |  1993-08-26  |  24KB  |  597 lines

  1. Archive-name: graphics/gnuplot-faq
  2. Version: $Header: comp-graphics-gnuplot,v 1.21 93/07/30 13:09:10 ig25 Exp $
  3.  
  4. This is the FAQ (Frequently Answered Questions) list of the
  5. comp.graphics.gnuplot newsgroup, which discusses the gnuplot program for
  6. plotting 2D - and 3D - graphs.
  7.  
  8. Most of the information in this document came from public discussion on
  9. comp.graphics.gnuplot; quotations are believed to be in the public
  10. domain.
  11.  
  12. Here's a list of the questions.  If you are looking for the answer for a
  13. specific question, look for the string Qx.x:  at the beginning of a line,
  14. with x.x being the question number.
  15.  
  16. Questions:
  17.  
  18. Section 0: Meta - Questions
  19. Q0.1: Where do I get this document?
  20. Q0.2: Where do I send comments about this document?
  21.  
  22. Section 1: General Information
  23. Q1.1: What is gnuplot?
  24. Q1.2: How did it come about and why is it called gnuplot?
  25. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  26. Q1.4: What does gnuplot offer?
  27. Q1.5: Is gnuplot suitable for batch processing?
  28. Q1.6: Can I run gnuplot on my computer?
  29.  
  30. Section 2: Setting it up
  31. Q2.1: What is the current version of gnuplot?
  32. Q2.2: Where can I get gnuplot?
  33. Q2.3: How do I get gnuplot to compile on my system?
  34. Q2.4: What documentation is there, and how do I get it?
  35.  
  36. Section 3: Working with it
  37. Q3.1: How do I get help?
  38. Q3.2: How do I print out my graphs?
  39. Q3.3: How do I include my graphs in <word processor>?
  40.  
  41. Section 4: Wanted features in gnuplot
  42. Q4.1: Does gnuplot have hidden line removal?
  43. Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  44. Q4.3: Does gnuplot support multiple y-axes on a single plot?
  45. Q4.4: Can I put multiple plots on a single page?
  46. Q4.5: Can I put both data files and commands into a single file?
  47. Q4.6: Can I put Greek letters and super/subscripts into my labels?
  48. Q4.7: Can I do 1:1 scaling of axes?
  49. Q4.8: Can I put tic marks for x and y axes into 3d plots?
  50.  
  51. Section 5: Miscellaneous
  52. Q5.1: I've found a bug, what do I do?
  53. Q5.2: Can I use gnuplot routines for my own programs?
  54. Q5.3: What extensions have people made to gnuplot?  Where can I get them?
  55. Q5.4: Can I do heavy - duty data processing with gnuplot?
  56. Q5.5: I have ported gnuplot to another system, or patched it.  What do I do?
  57.  
  58. Section 6: Making life easier
  59. Q6.1: How do I plot two functions in non - overlapping regions?
  60. Q6.2: How do I run my data through a filter before plotting?
  61. Q6.3: How do I make it easier to use gnuplot with LaTeX?
  62. Q6.4: How do I save and restore my settings?
  63.  
  64. Section 7: Known Problems
  65.  
  66. Q7.1: Gnuplot is not plotting any points under X11!  How come?
  67. Q7.2: My isoline data generated by a Fortran program is not handled
  68.         correctly.  What can I do?
  69. Q7.3: Why does gnuplot ignore my very small numbers?
  70.  
  71. Section 8: Credits
  72.  
  73. Questions and Answers:
  74.  
  75. Section 0: Meta - Questions.
  76.  
  77. Q0.1: Where do I get this document?
  78.  
  79. This document is posted about once every two weeks to the newsgroups
  80. comp.graphics.gnuplot, comp.answers and news.answers.  Like many other
  81. FAQ's, it is available via anonymous ftp from rtfm.mit.edu [18.70.0.224]
  82. from the directory /pub/usenet/news.answers under the Archive-Name:  at
  83. the top of the article, graphics/gnuplot-faq, and from the directory
  84. /pub/usenet/comp.graphics.gnuplot, as well as via gopher from
  85. gopher.univ-lyon1.fr [134.214.100.25].
  86.  
  87. Q0.2: Where do I send comments about this document?
  88.  
  89. Send comments, suggestions etc. via e-mail to Thomas Koenig,
  90. ig25@rz.uni-karlsruhe.de or ig25@dkauni2.bitnet.
  91.  
  92. Section 1: General Information
  93.  
  94. Q1.1: What is gnuplot?
  95.  
  96. Gnuplot is a command-driven interactive function plotting program.  It
  97. can be used to plot functions and data points in both two- and three-
  98. dimensional plots in many different formats, and will accommodate many
  99. of the needs of today's scientists for graphic data representation.
  100. Gnuplot is copyrighted, but freely distributable; you don't have to pay
  101. for it.
  102.  
  103. Q1.2: How did it come about and why is it called gnuplot?
  104.  
  105. The authors of gnuplot are:
  106.  
  107. Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell,
  108. Gershon Elber, Alexander Woo and many others.
  109.  
  110. The following quote comes from Thomas Williams:
  111.  
  112. I was taking a differential equation class and Colin was taking
  113. Electromagnetics, we both thought it'd be helpful to visualize the
  114. mathematics behind them.  We were both working as sys admin for an EE
  115. VLSI lab, so we had the graphics terminals and the time to do some
  116. coding.  The posting was better received than we expected, and prompted
  117. us to add some, albeit lame, support for file data.
  118.  
  119. Any reference to GNUplot is incorrect.  The real name of the program
  120. is "gnuplot".  You see people use "Gnuplot" quite a bit because many
  121. of us have an aversion to starting a sentence with a lower case
  122. letter, even in the case of proper nouns and titles.  Gnuplot is not
  123. related to the GNU project or the FSF in any but the most peripheral
  124. sense.  Our software was designed completely independently and the
  125. name "gnuplot" was actually a compromise.  I wanted to call it
  126. "llamaplot" and Colin wanted to call it "nplot."  We agreed that
  127. "newplot" was acceptable but, we then discovered that there was an
  128. absolutely ghastly pascal program of that name that the Computer
  129. Science Dept. occasionally used.  I decided that "gnuplot" would make
  130. a nice pun and after a fashion Colin agreed.
  131.  
  132. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  133.  
  134. Gnuplot is neither written nor maintained by the FSF.  It is not covered
  135. by the General Public License, either.
  136.  
  137. However, the FSF has decided to distribute gnuplot as part of the GNU
  138. system, because it is it is useful, redistributable software.
  139.  
  140. Q1.4: What does gnuplot offer?
  141.  
  142. - Plotting of two - dimensional functions and data points in many different
  143.   styles (points, lines, error bars)
  144. - plotting of three - dimensional data points and surfaces in many
  145.   different styles (contour plot, mesh).
  146. - support for complex arithmetic
  147. - self - defined functions
  148. - support for a large number of operating systems, graphics file formats
  149.   and devices
  150. - extensive on-line help
  151. - labels for title, axes, data points
  152. - command line editing and history on most platforms
  153.  
  154. Q1.5: Is gnuplot suitable for batch processing?
  155.  
  156. Yes.  You can read in files from the command line, or you can redirect
  157. your standard input to read from a file.  Both data and command files
  158. can be generated automatically, from data acquisition programs or
  159. whatever else you use.
  160.  
  161. Q1.6: Can I run gnuplot on my computer?
  162.  
  163. Gnuplot is available for a number of platforms.  These are:  Unix (X11
  164. and NeXTSTEP), VAX/VMS, OS/2, MS-DOS, Amiga, MS-Windows, OS-9/68k and
  165. the Macintosh.  Modifications for NEC PC-9801 are said to exist (where?).
  166. A version for the Atari ST exists at atari.archive.umich.edu, but is
  167. unstable.
  168.  
  169. Section 2: Setting it up
  170.  
  171. Q2.1: What is the current version of gnuplot?
  172.  
  173. The current version of gnuplot is 3.4, patchlevel 4.
  174.  
  175. Q2.2: Where can I get gnuplot?
  176.  
  177. [This information may be dated, due to the release of gnuplot 3.4.
  178. Please report any inaccuracies, if you find them.  Ed.]
  179.  
  180. All of the later addresses refer to ftp sites.  Please note that it is
  181. preferable for you to use the symbolic name, rather than the IP address
  182. given in brackets, because that address is much more subject to change.
  183.  
  184. The official distribution site for the gnuplot source is dartmouth.edu
  185. [129.170.16.4], the file is called /pub/gnuplot/gnuplot.3.4.tar.Z.
  186. Official mirrors of that distribution are (for Australia)
  187. monu1.cc.monash.edu.au [130.194.1.101] and (for Europe) irisa.irisa.fr
  188. [131.254.254.2].  You can also get it from your friendly neighbourhood
  189. comp.sources.misc archive.
  190.  
  191. MS-DOS and MS-Windows binaries are available from oak.oakland.edu (North
  192. America) [141.210.10.117] as pub/msdos/plot/gpt34*.zip, garbo.uwasa.fi
  193. (Europe) [128.214.87.1] as /pc/plot/gpt34*.zip and archie.au (Australia)
  194. [139.130.4.6] as micros/pc/oak/plot/gpt34*.zip.  The files are:
  195. gpt34doc.zip, gpt34exe.zip, gpt34src.zip and gpt34win.zip.
  196.  
  197. OS/2 2.x binaries are at ftp-os2.nmsu.edu [128.123.35.151], in
  198. /os2/2.x/unix/gnu/gplt33b2.zip .
  199.  
  200. Amiga sources and binaries are available from wuarchive.wustl.edu
  201. [128.252.135.4] as /pub/amiga/aminet/util/gnu/gnuplot-3.4*; there
  202. are numerous mirrors of this distribution.
  203.  
  204. The NeXTSTEP front-end can be found at sonata.cc.purdue.edu and
  205. cs.orst.edu.
  206.  
  207. A version for OS-9/68K can be found at cabrales.cs.wisc.edu
  208. [128.105.36.20] as /pub/OSK/GRAPHICS/gnuplot32x.tar.Z; it includes both
  209. X-Windows and non - X-windows versions.
  210.  
  211. A version of gnuplot for the Macintosh is included in the gpcontrb
  212. file, or can be found at wuarchive.wustl.edu [128.252.135.4], in
  213. edu/math/mac/graphingAids, as MacGnuPlot3.2.sea.hqx and
  214. MacGnuPlotPackage3.2.sea.hqx.
  215.  
  216. People without ftp access can use an ftp-mail server; send mail to
  217. bitftp@pucc.bitnet (for BITNET only) or ftpmail@decwrl.dec.com with the
  218. word 'help' in the mail body for more information.
  219.  
  220. It is a good idea to look for a nearby ftp site when downloading things.
  221. You can use archie for this.  See if an archie client is installed at
  222. your system (by simply typing archie at the command prompt), or send
  223. mail to archie@sura.net with the word 'help' in both the subject line
  224. and the body of the mail.  However, be aware that the version you find
  225. at a near ftp site may well be out of date; check the last modification
  226. date and the number of bytes against the newest release at one of the
  227. official servers.
  228.  
  229. Q2.3: How do I get gnuplot to compile on my system?
  230.  
  231. As you would any other installation.  Read the files README and
  232. README.Install, edit the Makefile according to taste, and run make or
  233. whatever is suitable for your operating system.
  234.  
  235. If you get a complaint about a missing file libplot.a or something
  236. similar when building gnuplot for x11, remove -DUNIXPLOT from the
  237. TERMFLAGS= line, remove -lplot from the LIBS= line and run again.  If
  238. you are making x11 on a sun, type 'make x11_sun'.
  239.  
  240. Q2.4: What documentation is there, and how do I get it?
  241.  
  242. The documentation is included in the source distribution.  Look at the
  243. docs subdirectory, where you'll find
  244.  
  245.  - a Unix man page, which says how to start gnuplot
  246.  - a help file, which also can be printed as a manual
  247.  - a tutorial on using gnuplot with LaTeX
  248.  - a quick reference summary sheet for TeX only
  249.  
  250. PostScript copies of the documentation can be ftp'd from dartmouth.edu,
  251. in pub/gnuplot, as manual.ps.Z and tutorial.ps.Z
  252.  
  253.  
  254. Section 3: Working with it
  255.  
  256. Q3.1: How do I get help?
  257.  
  258. Give the 'help' command at the initial prompt.  After that, keep
  259. looking through the keywords.  Good starting points are 'plot'
  260. and 'set'.
  261.  
  262. Read the manual, if you have it.
  263.  
  264. Ask your colleagues, the system administrator or the person who set
  265. up gnuplot.
  266.  
  267. Post a question to comp.graphics.gnuplot or send mail to the gatewayed
  268. mailing list info-gnuplot@dartmouth.edu.  If you want to subscribe to
  269. the mailing list, send mail to info-gnuplot-request@dartmouth.edu,
  270. but please don't do this if you can get comp.graphics.gnuplot directly.
  271. If you pose a question there, it is considered good form to solicit
  272. e-mail replies and post a summary.
  273.  
  274. Q3.2: How do I print out my graphs?
  275.  
  276. The kind of output produced is determined by the 'set terminal' command;
  277. for example, 'set terminal postscript' will produce the graph in
  278. PostScript format.  Output can be redirected using the 'set output'
  279. command.
  280.  
  281. As an example, the following prints out a graph of sin(x) on a Unix
  282. machine running X - Windows.
  283.  
  284. gnuplot> plot [-6:6] sin(x)
  285. gnuplot> set terminal postscript
  286. Terminal type set to 'postscript'
  287. Options are 'landscape monochrome "Courier" 14'
  288. gnuplot> set output "sin.ps"
  289. gnuplot> replot
  290. gnuplot> set output                      # set output back to default
  291. gnuplot> set terminal x11                # ditto for terminal type
  292. gnuplot> ! lp -ops sin.ps                # print ps - File (site dependent)
  293. request id is lprint-3433 (standard input)
  294. lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte)
  295. !
  296. gnuplot>
  297.  
  298. Q3.3: How do I include my graphs in <word processor>?
  299.  
  300. Basically, you save your plot to a file in a format your word processor
  301. can understand (using "set term" and "set output", see above), and then
  302. you read in the plot from your word processor.
  303.  
  304. Details depend on the kind of word processor you use; use "set term" to
  305. get a list of available file formats.
  306.  
  307. Many word processors can use Encapsulated PostScript for graphs.  This
  308. can be generated by the 'set terminal postscript eps' command.  Most
  309. MS-DOS word processors understand HPGL (terminal type hpgl).
  310.  
  311. With TeX, it depends on what you use to print your dvi files.  If you
  312. use dvips or dvi2ps, you can use Encapsulated PostScript.  For
  313. emTeX (popular for MS-DOS), you can use emTeX, otherwise use the
  314. LaTeX terminal type, which generates a picture environment.
  315.  
  316. If nothing else helps, try using the pgm or ppm format and converting it
  317. to a bitmap format your favourite word processor can understand.  An
  318. invaluable tool for this is Jef Poskanzer's PBMPLUS package.
  319.  
  320.  
  321. Section 4:  Wanted features in gnuplot
  322.  
  323. Q4.1: Does gnuplot have hidden line removal?
  324.  
  325. Version 3.4 supports hidden line removal on all platforms except MS-DOS.
  326. If someone can solve the 64K DGROUP memory problem, it would support
  327. hidden line removal there as well.  Version 3.2 supports limited hidden line
  328. removal.
  329.  
  330. Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  331.  
  332. Version 3.4 does.
  333.  
  334. Q4.3: Does gnuplot support multiple y-axes on a single plot?
  335.  
  336. No.
  337.  
  338. Q4.4: Can I put multiple plots on a single page?
  339.  
  340. Look at the rosendorf subdirectory in the gpcontrb distribution;
  341. if you are using PostScript output, check out mpage, which can
  342. be ftp'd from
  343.  
  344. ftp.eng.umd.edu:pub/misc/mpage-2.tar.Z
  345.  
  346. Q4.5: Can I put both data files and commands into a single file?
  347.  
  348. Alex Woo has just put out an unofficial modification for beta test,
  349. which does exactly this.  Otherwise, you might consider using Fudgit,
  350. which can do it.
  351.  
  352. Q4.6: Can I put Greek letters and super/subscripts into my labels?
  353.  
  354. You might try using the latex terminal type and putting text like
  355. \alpha_{3} into it.
  356.  
  357. If you use PostScript output, you might find something in the Green
  358. subdirectory of the gpcontrb file (see Q5.3).
  359.  
  360. Q4.7: Can I do 1:1 scaling of axes?
  361.  
  362. Not easily.
  363.  
  364. Q4.8: Can I put tic marks for x and y axes into 3d plots?
  365.  
  366. There are patches to do this on prep.ai.mit.edu, which can do this.
  367.  
  368.  
  369. Section 5:  Miscellaneous
  370.  
  371. Q5.1: I've found a bug, what do I do?
  372.  
  373. First, try to see whether it actually is a bug, or whether it is a feature
  374. which may be turned off by some obscure set - command.  If you have a
  375. fairly general sort of bug report, posting to comp.graphics.gnuplot is
  376. probably the way to go.  If you have investigated a problem in detail,
  377. especially if you have a context diff that fixes the problem, please
  378. e-email a report to bug-gnuplot@dartmouth.edu.  The bug-gnuplot list
  379. is for reporting and collecting bug fixes, the comp.graphics.gnuplot
  380. mailing list will be more help for finding work arounds or actually
  381. solving gnuplot related problems.  If you do send in a bug report, be
  382. sure and include the version of gnuplot (including patchlevel), terminal
  383. driver, operating system, an exact description of the bug and input
  384. which can reproduce the bug.  Also, any context diffs should be
  385. referenced against the latest official version of gnuplot if at all
  386. possible.
  387.  
  388. Q5.2: Can I use gnuplot routines for my own programs?
  389.  
  390. Yes.  John Campbell <jdc@nauvax.ucc.nau.edu> has written gplotlib, a
  391. version of gnuplot as C subroutines callable from a C program.  This is
  392. available as gplotlib.tar.Z on the machine ftp.nau.edu in the directory
  393. /pub/gplotlib.tar.Z.  It is also included in the gpcontrb distribution
  394. in the campbell subdirectory.
  395.  
  396. Q5.3: What extensions have people made to gnuplot?  Where can I get them?
  397.  
  398. [This is still hazy; please check this out and see whether it is correct.
  399. Ed.]
  400.  
  401. Extensions have been put into the file gpcontrb.tar.z, which is
  402. available with the 3.4 release, from the same places you can
  403. download the main distribution from.
  404.  
  405. Note that it is 3.5 megabytes and compressed using gzip.  The gzip
  406. program is available from everywhere where you can find GNU software.
  407. The main distribution site is prep.ai.mit.edu [18.71.0.38], in the
  408. directory /pub/gnu.
  409.  
  410. It contains the following subdirectories:
  411.  
  412. bigler subdirectory:
  413.         From: bigler@cicg-calcul.grenet.fr
  414.         Subject: Multiple plots from a Fortran program
  415. budelsky subdirectory:
  416.         From: budelsky@haegar.ikp.uni-koeln.de
  417.         Subject: This is the information file for porting gnuplot 3.2
  418.                 to OS-9/68000
  419. byrne subdirectory:
  420.         From: "Margaret R. Byrne" <mrb2j@kelvin.seas.virginia.edu>
  421.         Subject: congp3d3 preprocessor to draw contour plots on
  422.                 irregular regions.
  423. clark subdirectory:
  424.         From: Michael Clark <clarkmp@prony.Colorado.EDU>
  425.         Subject: data filtering: adds point_skip & point_offs
  426. clift subdirectory:
  427.         From: ssclift@neumann.uwaterloo.ca (Simon Clift)
  428.         Subject: Re: Running gnuplot from Fortran, (and C)
  429. green subdirectory:
  430.         From: Roque Donizete de Oliveira <oliveria@engin.umich.edu>
  431.         Subject: PostScript Greek symbols in gnuplot, new prologue
  432. hanna subdirectory:
  433.         From: gregor@kafka.saic.com (gregg hanna)
  434.         Subject: x11-library mode, gnulib_x11.[c,h], xlibtest.c,makefile.xlib
  435. klosowski subdirectory:
  436.         From:   Carsten Steger <stegerc@informatik.tu-muenchen.de>
  437.         Subject: New file "klein.dat"
  438.         From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
  439.         Subject: calling gnuplot from Fortran
  440. kocaturk subdirectory:
  441.         From: mustafa@seas.smu.edu (Mustafa Kocaturk)
  442.         Subject: Histograms in gnuplot
  443. richardson subdirectory:
  444.         From: amr@chiton.ucsd.edu (Tony Richardson)
  445.         Subject: Programmatic control of gnuplot from Unix
  446. rosendorf subdirectory:
  447.         From:  prf@jprix.che.wisc.edu
  448.         Subject: Multiple plots on a page
  449. vanzandt subdirectory:
  450.         From: James R. Van Zandt <jrv@mitre-bedford.ARPA>
  451.         Subject: Spline generating program
  452. white subdirectory:
  453.         From: gwhite@bionet.bio.dfo.ca
  454.         Subject: gnuplot 3.2 for Titan 3000
  455. woo subdirectory:
  456.         From: "Alex Woo" <woo@ra-next.arc.nasa.gov>
  457.         Subject: two additional title lines and fixes to errorbar style
  458. yamamoto subdirectory:
  459.         From: "NOBORU YAMAMOTO     " <sun!kekvax.kek.jp!YAMAMOTO@pixar.com>
  460.         Subject: Re: gnuplot on Apple Macintosh, "diff -c" of version 3.0
  461.                 (now includes binaries)
  462.  
  463. Q5.4: Can I do heavy - duty data processing with gnuplot?
  464.  
  465. Gnuplot alone is not suited very well for this.  One thing you might try
  466. is fudgit, an interactive multi-purpose fitting program written by
  467. Martin-D.  Lacasse (isaac@frodo.physics.mcgill.ca).  It can use gnuplot
  468. as its graphics back-end and is available from ftp.physics.mcgill.ca
  469. in /pub/Fudgit/fudgit_2.33.tar.Z [132.206.9.13], and from the main Linux
  470. server, tsx-11.mit.edu [18.172.1.2] and its numerous mirrors around the
  471. world as /pub/linux/sources/usr.bin/fudgit-2.33.tar.z.  Versions are
  472. available for AIX, Data General, HP-UX, IRIX 4, Linux, NeXT, Sun3, Sun4,
  473. Ultrix, OS/2 and MS-DOS.
  474.  
  475. Carsten Grammes has written a fitting program which goes together
  476. with gnuplot; it is called gnufit and is available from ftp.uni-kl.de
  477. [131.246.9.95] from the directory /pub/gnu/gnufit as gnufit10.tar.gz
  478. or gft10dos.zip.
  479.  
  480. You might also want to look at the applications developed by the
  481. Software Tools Group (STG) at the National Center for Supercomputing
  482. Applications.  Ftp to ftp.ncsa.uiuc.edu [141.142.20.50] and get the
  483. file README.BROCHURE for more information.
  484.  
  485. Q5.5: I have ported gnuplot to another system, or patched it.  What do I do?
  486.  
  487. If your patch is small, mail it to bug-gnuplot@dartmouth.edu, with
  488. a thorough description of what the patch is supposed to do, which version
  489. of gnuplot it is relative to, etc.  Please don't mail it to the FAQ
  490. maintainer.
  491.  
  492. If your modifications are extensive (such as a port to another system),
  493. upload your modifications to dartmouth.edu:/pub/dropoff.  Please drop a
  494. note to David.Kotz@dartmouth.edu, the maintainer of the gnuplot
  495. subdirectory there, plus a note to bug-gnuplot@dartmouth.edu.
  496.  
  497.  
  498. Section 6: Making life easier
  499.  
  500. Q6.1: How do I plot two functions in non - overlapping regions?
  501.  
  502. Use a parametric plot.  An example:
  503.  
  504. set parametric
  505. a=1
  506. b=3
  507. c=2
  508. d=4
  509. x1(t) = a+(b-a)*t
  510. x2(t) = c+(d-c)*t
  511. f1(x) = sin(x)
  512. f2(x) = x**2/8
  513. plot [t=0:1] x1(t),f1(x1(t)) title "f1", x2(t), f2(x2(t)) title "f2"
  514.  
  515. Q6.2: How do I run my data through a filter before plotting?
  516.  
  517. If your system supports the popen() - function, as Unix does, you should
  518. be able to run the output through another process such as a short awk
  519. program (use the "help plot datafile" command for an example).
  520. Unfortunately, in 3.2, there is a rather short limitation on the maximum
  521. argument length, so your command line may be truncated (usually, this
  522. will mean that awk cannot find the filename).  Also, you may need to
  523. escape the $ - characters in your awk programs.
  524.  
  525. Version 3.4 includes the thru - keyword for the plot command for running
  526. data files through a gnuplot - defined function.
  527.  
  528. Q6.3: How do I make it easier to use gnuplot with LaTeX?
  529.  
  530. There is a set of LaTeX macros and shell scripts that are meant to
  531. make your life easier when using gnuplot with LaTeX.  This package can
  532. be found on dartmouth.edu [129.170.16.4] in pub/gnuplot/latex.shar, by
  533. David Kotz.  For example, the program "plotskel" can turn a
  534. gnuplot-output file plot.tex into a skeleton file skel.tex, that has
  535. the same size as the original plot but contains no graph.  With the
  536. right macros, the skeleton can be used for preliminary LaTeX passes,
  537. reserving the full graph for later passes, saving tremendous amounts
  538. of time.
  539.  
  540. Q6.4: How do I save and restore my settings?
  541.  
  542. Use the "save" and "load" commands for this; see "help save" and
  543. "help load" for details.
  544.  
  545.  
  546. Section 7: Known problems
  547.  
  548. Q7.1: Gnuplot is not plotting any points under X11!  How come?
  549.  
  550. Very probably, you still are using an old version of gnuplot_x11.
  551. Remove that, then do a full installation.
  552.  
  553. Q7.2: My isoline data generated by a Fortran program is not handled
  554.         correctly.  What can I do?
  555.  
  556. One known cause for this is the use of list - directed output (as in
  557. WRITE (10,*) for generating blank lines.  Fortran uses ASA carriage
  558. control characters, and for list - directed output this results
  559. in a space being output before the newline.  Gnuplot does not like
  560. this.
  561.  
  562. The solution is to generate blank lines using formatted output, as in
  563. WRITE (10,'()').
  564.  
  565. Q7.3: Why does gnuplot ignore my very small numbers?
  566.  
  567. Gnuplot treats all numbers less than 1e-08 as zero, by default.  Thus,
  568. if you are trying to plot a collection of very small numbers, they may
  569. be plotted as zero.  Worse, if you're plotting on a log scale, they will
  570. be off scale.  Or, if the whole set of numbers is "zero", your range may
  571. be considered empty:
  572.  
  573. gnuplot> plot 'test1'
  574. Warning: empty y range [4.047e-19:3e-11], adjusting to [-1:1]
  575. gnuplot> set yrange [4e-19:3e-11]
  576. gnuplot> plot 'test1'
  577.                      ^
  578.          y range is less than `zero`
  579.  
  580. The solution is to change gnuplot's idea of "zero":
  581.         set zero 1e-20
  582. For more information,
  583.         help set zero
  584.  
  585.  
  586. Section 8: Credits
  587.  
  588. This list was initially compiled by John Fletcher with contributions
  589. from Russell Lang, John Campbell, David Kotz, Rob Cunningham,
  590. Daniel Lewart and Alex Woo.  Reworked by Thomas Koenig from a draft by
  591. Alex Woo, with corrections and additions from Alex Woo, John Campbell,
  592. Russell Lang, David Kotz and many corrections from Daniel Lewart.
  593. -- 
  594. Thomas K÷nig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
  595. The joy of engineering is to find a straight line on a double
  596. logarithmic diagram.
  597.